home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Freeware 2002 November
/
SGI Freeware 2002 November - Disc 1.iso
/
dist
/
fw_exmh.idb
/
usr
/
freeware
/
lib
/
exmh-2.5
/
xns.tcl.z
/
xns.tcl
Wrap
Text File
|
2002-07-08
|
950b
|
31 lines
#
# xns.tcl
#
# Thin layer over xnsgetmail routine that fetching messages from
# an XNS mail server to your UNIX spool file. An expect script is
# used to check if you need to login or not..
#
# Copyright (c) 1994 Xerox Corporation.
# Use and copying of this software and preparation of derivative works based
# upon this software are permitted. Any distribution of this software or
# derivative works must comply with all applicable United States export
# control laws. This software is made available AS IS, and Xerox Corporation
# makes no warranty about the software, its performance or its conformity to
# any specification.
proc Xns_GetMail {} {
global exmh
Exmh_Status "xnsgetmail -k"
if [catch {exec $exmh(expect) -f $exmh(library)/xnsgetmail.exp} err] {
if [regexp {XNS username} $err] {
Exmh_Status "Please XNS login"
exec xterm -e xnslogin
after 1000 Xns_GetMail
} else {
Exmh_Status $err
}
}
}